﻿using System;
using System.Threading;
using System.Threading.Tasks;

namespace ZFY.UnitOfWork
{
    /// <summary>
    /// 统一的事务操作接口。不同的ORM框架其实现不同
    /// </summary>
    public interface ITransactionApi:IDisposable
    {
        Task CommitAsync(CancellationToken cancellationToken);
        Task RollbackAsync(CancellationToken cancellationToken);
        
    }
}
